import Vue from 'vue'
import App from './App'
import uView from 'uview-ui';

import platform from './core/config.js'
import request from './core/request.js'
import $const from './core/const.js'
import Api from './core/apiUrl.js'
import * as cache from './core/cache.js'
import siteInfo from 'siteInfo'
import * as utils from './core/utils.js';
import user from './core/user.js';
import common from './util/common/common.js';
import jwx from './core/jwx.js'

import "./static/assets/css/reset.css";
import "./static/assets/iconfont/iconfont";
import "./static/assets/iconfont/iconfont.css";



Vue.config.productionTip = false
Vue.use(uView);
App.mpType = 'app'



Vue.use({
	install(Vue, options) {
		
		Vue.prototype.$jwx = jwx

		Vue.prototype.$siteInfo = siteInfo;
		// 工具函数
		Vue.prototype.$utils = utils;

		// 接口 路径
		Vue.prototype.$api = Api;
		// 缓存
		Vue.prototype.$storage = cache;

		// 用户组件
		Vue.prototype.$user = user;

		// 常量
		Vue.prototype.$const = $const;
		// 请求
		Vue.prototype.$request = request;
		//场景值
		Vue.prototype.$appScene = 1001;
		//通用方法
		Vue.prototype.$common = common;
		
		
	},
});

const app = new Vue({
	...App
})
app.$mount()
